package com.dragon.modules.yuegou.model.member;

import com.dragon.modules.yuegou.entity.member.DistrictMemberEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 商圈会员模型类
 * 
 * @author pbuilder generated
 * @date 2019-03-18 17:04:03
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class DistrictMember extends DistrictMemberEntity {

	@ApiModelProperty("是否新会员")
	private Boolean newMember = false;

	@ApiModelProperty("会员当前等级级别")
	private Integer serialNumber;

	public Boolean getNewMember() {
		return newMember;
	}

	public void setNewMember(Boolean newMember) {
		this.newMember = newMember;
	}

	/**
	 * 构造一个空商圈会员模型对象
	 */
	public DistrictMember(){
		super();
	}


	/**
	 * 依据实体对象的信息构造一个商圈会员模型对象
	 * 
	 * @param entity 实体对象
	 */
	public DistrictMember(DistrictMemberEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个商圈会员模型对象
	 * 
	 * @param other 其它对象
	 */
	public DistrictMember(DistrictMember other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public DistrictMember id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈ID
	 * 
	 * @param busdId 商圈ID
	 * @return 当前对象
	 */
    public DistrictMember busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置会员ID
	 * 
	 * @param memberId 会员ID
	 * @return 当前对象
	 */
    public DistrictMember memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public Integer getMemPoints() {
    	return memPoints;
    }

    /**
	 * 设置会员积分
	 * 
	 * @param memPoints 会员积分
	 * @return 当前对象
	 */
    public DistrictMember memPoints(Integer memPoints) {
    	this.memPoints = memPoints;
    	return this;
    }

	public Integer getSerialNumber() {
		return serialNumber;
	}

	public void setSerialNumber(Integer serialNumber) {
		this.serialNumber = serialNumber;
	}

	@Override
	public Integer getCumulativePoints() {
    	return cumulativePoints;
    }

    /**
	 * 设置线下累计积分
	 * 
	 * @param cumulativePoints 线下累计积分
	 * @return 当前对象
	 */
    public DistrictMember cumulativePoints(Integer cumulativePoints) {
    	this.cumulativePoints = cumulativePoints;
    	return this;
    }

	@Override
	public Integer getOnlinePoints() {
    	return onlinePoints;
    }

    /**
	 * 设置线上累计积分
	 * 
	 * @param onlinePoints 线上累计积分
	 * @return 当前对象
	 */
    public DistrictMember onlinePoints(Integer onlinePoints) {
    	this.onlinePoints = onlinePoints;
    	return this;
    }

	@Override
	public Integer getTotalPoints() {
    	return totalPoints;
    }

    /**
	 * 设置总积分
	 * 
	 * @param totalPoints 总积分
	 * @return 当前对象
	 */
    public DistrictMember totalPoints(Integer totalPoints) {
    	this.totalPoints = totalPoints;
    	return this;
    }


	@Override
	public String getMemLevel() {
    	return memLevel;
    }

    /**
	 * 设置会员等级
	 * 
	 * @param memLevel 会员等级
	 * @return 当前对象
	 */
    public DistrictMember memLevel(String memLevel) {
    	this.memLevel = memLevel;
    	return this;
    }

	@Override
	public LocalDateTime getValidityBeginTime() {
    	return validityBeginTime;
    }

    /**
	 * 设置等级有效期开始时间
	 * 
	 * @param validityBeginTime 等级有效期开始时间
	 * @return 当前对象
	 */
    public DistrictMember validityBeginTime(LocalDateTime validityBeginTime) {
    	this.validityBeginTime = validityBeginTime;
    	return this;
    }

	@Override
	public LocalDateTime getValidityEndTime() {
    	return validityEndTime;
    }

    /**
	 * 设置等级有效期结束时间
	 * 
	 * @param validityEndTime 等级有效期结束时间
	 * @return 当前对象
	 */
    public DistrictMember validityEndTime(LocalDateTime validityEndTime) {
    	this.validityEndTime = validityEndTime;
    	return this;
    }

	@Override
	public Integer getSignday() {
    	return signday;
    }

    /**
	 * 设置累积签到天数
	 * 
	 * @param signday 累积签到天数
	 * @return 当前对象
	 */
    public DistrictMember signday(Integer signday) {
    	this.signday = signday;
    	return this;
    }

	@Override
	public Integer getFansNum() {
    	return fansNum;
    }

    /**
	 * 设置粉丝数
	 * 
	 * @param fansNum 粉丝数
	 * @return 当前对象
	 */
    public DistrictMember fansNum(Integer fansNum) {
    	this.fansNum = fansNum;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public DistrictMember createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedTime 
	 * @return 当前对象
	 */
    public DistrictMember modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public Integer getVersion() {
    	return version;
    }

    /**
	 * 设置版本号
	 * 
	 * @param version 版本号
	 * @return 当前对象
	 */
    public DistrictMember version(Integer version) {
    	this.version = version;
    	return this;
    }

}
